class Origin(models.Model):
	superhero = models.ForeignKey(settings.AUTH_USER_MODEL)
	origin = models.CharField(max_length=100)

class Location(models.Model):
	latitude = models.FloatField()
	longitude = models.FloatField()
	country = models.CharField(max_length=100)

	class Meta:
		unique_together = ('latitude', 'longitude')


class Sighting(models.Model):
	superhero = models.ForeignKey(settings.AUTH_USER_MODEL)
	power = models.CharField(max_length=100)
	location = models.ForeignKey(Location)
	sighted_on = models.DateTimeField()

	class Meta:
		unique_together = ('superhero', 'power')